<template>
	<!-- 底部按钮 -->
	<view class="b_btn">
		<view class="btn" :style="{background:bgColor}" @tap="handleBtn">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: {
			bgColor: {
				type: String,
				default: '#275BA8'
			}
		},
		methods: {
			handleBtn() {
				this.$emit('setHandleBtn')
			}
		}
	}
</script>

<style lang="less" scoped>
	.b_btn {
		width: 100%;
		height: 160rpx;
		background: #FFFFFF;
		box-shadow: 0rpx -4rpx 12rpx 0rpx rgba(140, 140, 140, 0.302);
		position: fixed;
		bottom: 0;
		z-index: 999;

		>.btn {
			width: 710rpx;
			height: 80rpx;
			margin: 16rpx 20rpx 0;
			font-size: 32rpx;
			font-family: Source Han Sans CN-Medium, Source Han Sans CN;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 46rpx;
			letter-spacing: 1px;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 10rpx;
			overflow: hidden;
		}
	}
</style>